package dao

import (
	"github.com/benji/software/model"
	"github.com/sirupsen/logrus"
)

func CreateParent( parent *model.Parent)error{
	if err := Db.Table("parent").Save(parent).Error; err != nil {
		logrus.Errorf("fail to CreateParent")
		return err
	}
	return nil
}


